package com.ikun.common.client;

import com.ikun.common.entity.RegistrationType;
import com.ikun.common.entity.TimePeriod;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author sun12
 */
@FeignClient("hos-scheduling")
public interface SchedulingServiceClient {


    /**
     * 根据id查询时间段
     */
    @GetMapping("/time/{id}")
    ResponseEntity<TimePeriod> findTimeById(@PathVariable Integer id);

    /**
     * 根据id查询挂号类型
     */
    @GetMapping("/type/{id}")
    ResponseEntity<RegistrationType> findTypeById(@PathVariable Integer id);


}
